<?php get_header();   the_post();?>
<section id="mainColumn">
	<?php // if (have_posts()) : while (have_posts()): the_post(); ?>
	<h1>
		<?php the_title(); ?>
	</h1>
	<article id="teaser" class="marginLeftAndRight horizontalDottedLine">
		<div>
			<h3><?php the_title(); ?></h3>
			<p><?php echo get_the_content(); ?></p>
		</div>
		<div id="teaserFooter">
			<a class="footer" href="#">
				<?php the_date(); ?>
				by
				<?php the_author(); ?>
			</a>
		</div>
	</article>
	<div class="footer">
		<div id="readMore">
			<?php

			$next_post = get_next_post();
			$previous_post = get_previous_post();
			
			if (!empty($previous_post)): ?>
			<a href="<?php echo get_permalink($previous_post->ID); ?>">&laquo; Previous post</a>
			<?php
			endif;

			if (!empty($next_post)): ?>
			<a href="<?php echo get_permalink($next_post->ID); ?>">Next post &raquo;</a>
			<?php endif; ?>
		</div>
	</div>
	<?php //endwhile;  endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer();  ?>
